/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.ssau.entities;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;
import ru.ssau.lib.StringIntegerPair;


public interface ThreadLocalHome extends EJBLocalHome {
    
    ThreadLocal create(String caption) throws CreateException;
    
    ThreadLocal findByPrimaryKey(Integer primaryKey) throws FinderException;
    
    Collection<ThreadLocal> findByCaption(String caption) throws FinderException;
    
    //Collection findAll() throws FinderException;
    Collection<StringIntegerPair> getAllAsStringIntegerPairs();
            
}
